import React from 'react'
import { CourseView } from '@/ui'

export default [
	{
		path: '/test',
		parent: '/',
		element: (
            <CourseView
              cacheKey={'test'}
              view={React.lazy(() => import('../views/test'))} 
            />
          ),
		children: []
	},
	{
		path: '/monitor',
		parent: '/',
		children: [
			{
				path: '/monitor/online',
				parent: '/monitor',
				element: ( 
            <CourseView
              cacheKey={'monitor/online'}
              table={() => import('../views/monitor/online/table')}  
              schema={() => import('../views/monitor/online/schema')} 
              service={() => import('../views/monitor/online/service')}
            />
          ),
				children: []
			},
			{
				path: '/monitor/job',
				parent: '/monitor',
				element: ( 
            <CourseView
              cacheKey={'monitor/job'}
              table={() => import('../views/monitor/job/table')}  
              schema={() => import('../views/monitor/job/schema')} 
              service={() => import('../views/monitor/job/service')}
            />
          ),
				children: []
			}
		]
	},
	{
		path: '/system',
		parent: '/',
		children: [
			{
				path: '/system/dept',
				parent: '/system',
				element: ( 
            <CourseView
              cacheKey={'system/dept'}
              table={() => import('../views/system/dept/table')}  
              schema={() => import('../views/system/dept/schema')} 
              service={() => import('../views/system/dept/service')}
            />
          ),
				children: []
			},
			{
				path: '/system/menu',
				parent: '/system',
				element: ( 
            <CourseView
              cacheKey={'system/menu'}
              table={() => import('../views/system/menu/table')}  
              schema={() => import('../views/system/menu/schema')} 
              service={() => import('../views/system/menu/service')}
            />
          ),
				children: []
			},
			{
				path: '/system/role',
				parent: '/system',
				element: ( 
            <CourseView
              cacheKey={'system/role'}
              table={() => import('../views/system/role/table')}  
              schema={() => import('../views/system/role/schema')} 
              service={() => import('../views/system/role/service')}
            />
          ),
				children: []
			},
			{
				path: '/system/user',
				parent: '/system',
				element: ( 
            <CourseView
              cacheKey={'system/user'}
              table={() => import('../views/system/user/table')}  
              schema={() => import('../views/system/user/schema')} 
              service={() => import('../views/system/user/service')}
            />
          ),
				children: []
			},
			{
				path: '/system/dict',
				parent: '/system',
				element: ( 
            <CourseView
              cacheKey={'system/dict'}
              table={() => import('../views/system/dict/table')}  
              schema={() => import('../views/system/dict/schema')} 
              service={() => import('../views/system/dict/service')}
            />
          ),
				children: []
			}
		]
	}
]